package com.xue.user.controller;

import com.xue.user.config.ConfigRefresh;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ConfigClientController{

    @Resource
    private ConfigRefresh configRefresh;

    @GetMapping("/config/info")
    public String getConfigInfo() {
        return configRefresh.getInfo();
    }

}
